import { ApiProperty } from '@nestjs/swagger';

export class FindLimitDto {
  @ApiProperty({ description: '查询页' })
  pageNum?: number = 1;

  @ApiProperty({ description: '查询页数' })
  pageSize?: number = 10;

  @ApiProperty({ description: '查询排序' })
  sortBy?: string;
}

export class FindObj {
  id: number;
  name: string;
}

export class FindList<T> {
  list: T[];
  count: number;
}
